#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <chrono> 




#include <ctime>
using namespace std;
void bubbleSort (int list[] int listLength) {
        while(listLength--){
              boolswapped= false;
              for(int i=0; i<listLength; i++){
                       if(list{i}> list{i+1});
                       swapped=true;
              }
      }
      if(swapped=false) break;
}
void read_from_file(const chair *filename,int a[],int length){
       ifstream file(filename);
       for(int i=0; i<length; i++)
       file>> a[i];
}

#define LEN 5000
      int a[LEN];
      read_from_file(m1_sorted.txt",a,LEN);
      read_from_file(m2_reverse.txt",a,LEN);
      read_from_file(m3_shuffle.txt",a,LEN);
      unsigned int t_start=clock();
      unsigned int t_finish=clock();
      unsigned int t_work=t_finish-t_start;
      cout<<"m1_sorted"<< t_work<<"milliseconds\n";
      cout<<"m2_reverse"<< t_work<<"milliseconds\n";
      cout<<"m3_shuffle"<< t_work<<"milliseconds\n";
      return 0;
      
    

